Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Support parsing raw literals in UniValue #31

Merged
merged 1 commit into from
Jan 29, 2017

Conversation

ryanofsky
Copy link
Contributor

Fixes following test failures in https://github.com/nst/JSONTestSuite

bitcoin SHOULD_HAVE_PASSED y_structure_lonely_negative_real.json
bitcoin SHOULD_HAVE_PASSED y_structure_lonely_string.json
bitcoin SHOULD_HAVE_PASSED y_structure_lonely_false.json
bitcoin SHOULD_HAVE_PASSED y_structure_lonely_null.json
bitcoin SHOULD_HAVE_PASSED y_string_space.json
bitcoin SHOULD_HAVE_PASSED y_structure_string_empty.json
bitcoin SHOULD_HAVE_PASSED y_structure_lonely_int.json
bitcoin SHOULD_HAVE_PASSED y_structure_lonely_true.json

@ryanofsky
Copy link
Contributor Author

@laanwj also mentioned this change would be useful to have in bitcoin: bitcoin/bitcoin#9028 (comment)

@laanwj
Copy link
Contributor

laanwj commented Nov 7, 2016

Yes, this would be useful, we work around this with an ugly hack right now (this is not passing the tests though!).

@maflcko
Copy link
Contributor

maflcko commented Nov 7, 2016

@ryanofsky Make sure to add those to the Makefile.am as well.

Fixes following test failures in https://github.com/nst/JSONTestSuite:

bitcoin SHOULD_HAVE_PASSED  y_structure_lonely_negative_real.json
bitcoin SHOULD_HAVE_PASSED  y_structure_lonely_string.json
bitcoin SHOULD_HAVE_PASSED  y_structure_lonely_false.json
bitcoin SHOULD_HAVE_PASSED  y_structure_lonely_null.json
bitcoin SHOULD_HAVE_PASSED  y_string_space.json
bitcoin SHOULD_HAVE_PASSED  y_structure_string_empty.json
bitcoin SHOULD_HAVE_PASSED  y_structure_lonely_int.json
bitcoin SHOULD_HAVE_PASSED  y_structure_lonely_true.json
@ryanofsky
Copy link
Contributor Author

Thanks, updated Makefile.am.

@jgarzik
Copy link
Owner

jgarzik commented Jan 29, 2017

This PR, take by itself, introduces an unterminated-string bug at the core of the parser.

Usefully, the next PR - #32 - fixes this bug.

In the future, we want to avoid this split-submission, as it impacts git bisect.

@jgarzik jgarzik merged commit 89bb073 into jgarzik:master Jan 29, 2017
@ryanofsky
Copy link
Contributor Author

I think the opposite is true: The merge of #32 was bad and introduced an unterminated string bug, while this pr, AFAICT is fine. I posted a fix for the current unterminated string bug in #36.

stickies-v added a commit to stickies-v/bitcoin that referenced this pull request Jan 18, 2023
Since jgarzik/univalue#31, UniValue::read() can now
parse raw literals directly, so there is no more need to wrap them into an
array first.
stickies-v added a commit to stickies-v/bitcoin that referenced this pull request Mar 4, 2023
Since jgarzik/univalue#31, UniValue::read() can now
parse raw literals directly, so there is no more need to wrap them into an
array first.
janus pushed a commit to BitgesellOfficial/bitgesell that referenced this pull request Aug 27, 2023
Since jgarzik/univalue#31, UniValue::read() can now
parse raw literals directly, so there is no more need to wrap them into an
array first.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants